/**
 * Project Name:fire-industry-DM-center
 * File Name:DmMapDrugDroduceCompanies.java
 * Package Name:com.firestone.bean.entity.elasticsearch.dm
 * Date:2018年4月17日下午5:35:52
 *
*/

package com.firestone.bean.entity.elasticsearch.dm;

import java.io.Serializable;
import java.util.List;

import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.DateFormat;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;
import org.springframework.data.elasticsearch.annotations.Setting;

import com.firestone.bean.entity.elasticsearch.nested.WeightJson;

/**
 * @Description: TODO(数据工厂DM层药品器械生产经营企业表实体类)
 * @author lvxc
 * @date 2018年4月17日 下午5:35:52
 */

@Document(indexName = "dm_map_drug_produce_companies", type = "index", createIndex = false)
@Setting(settingPath = "/setting/setting.json")
public class DmMapDrugDroduceCompanies implements Serializable{
    
    private static final long serialVersionUID = 1L;
    
    @Id
    private String id;

    /**
     * @Fields SYS_add_time : TODO(添加时间)
     */
    @Field(type = FieldType.Date, format = DateFormat.custom, pattern = "yyyy-MM-dd HH:mm:ss")
    private String SYS_add_time;

    /**
     * @Fields SYS_check_time : TODO(检验时间)
     */
    @Field(type = FieldType.Date, format = DateFormat.custom, pattern = "yyyy-MM-dd HH:mm:ss")
    private String SYS_check_time;

    /**
     * @Fields SYS_dm_update_time : TODO(更改时间)
     */
    @Field(type = FieldType.Date, format = DateFormat.custom, pattern = "yyyy-MM-dd HH:mm:ss")
    private String SYS_dm_update_time;
    
    /**
     * @Fields add_time : TODO(新增时间)
     */
    @Field(type = FieldType.Date, format = DateFormat.custom, pattern = "yyyy-MM-dd HH:mm:ss")
    private String add_time;
    
    /**
     * @Fields business_method : TODO(经营方式)
     */
    @Field(type = FieldType.keyword)
    private String business_method;
    
    /**
     * @Fields change_content : TODO(变更内容)
     */
    @Field(type = FieldType.keyword)
    private String change_content;
    
    /**
     * @Fields change_date : TODO(变更时间)
     */
    @Field(type = FieldType.keyword)
    private String change_date;
    
    /**
     * @Fields change_to_legal_person : TODO(变更法人)
     */
    @Field(type = FieldType.keyword)
    private String change_to_legal_person;
    
    /**
     * @Fields classification_code : TODO(分类码)
     */
    @Field(type = FieldType.keyword)
    private String classification_code;
    
    /**
     * @Fields control_info : 
     */
    @Field(type = FieldType.keyword,analyzer="ik_max_word")
    private String control_info;
    
    /**
     * @Fields control_number : TODO(生产编号)
     */
    @Field(type = FieldType.keyword)
    private String control_number;
    
    /**
     * @Fields credential_number : TODO(经营证号)
     */
    @Field(type = FieldType.keyword)
    private String credential_number;
    
    /**
     * @Fields del_flag : 
     */
    @Field(type = FieldType.keyword)
    private String del_flag;
    
    /**
     * @Fields expiry_date : TODO(有效期至)
     */
    @Field(type = FieldType.keyword)
    private String expiry_date;
    
    /**
     * @Fields issuer : 
     */
    @Field(type = FieldType.keyword)
    private String issuer;
    
    /**
     * @Fields issuing_agence : TODO(发证机关)
     */
    @Field(type = FieldType.keyword)
    private String issuing_agence;
    
    /**
     * @Fields issuing_date : TODO(发证日期)
     */
    @Field(type = FieldType.keyword)
    private String issuing_date;
    
    /**
     * @Fields last_exam_year : 
     */
    @Field(type = FieldType.keyword)
    private String last_exam_year;
    
    /**
     * @Fields leader_of_enterprise : TODO(企业负责人)
     */
    @Field(type = FieldType.keyword)
    private String leader_of_enterprise;
    
    /**
     * @Fields leader_of_quality : TODO(质量负责人)
     */
    @Field(type = FieldType.keyword)
    private String leader_of_quality;
    
    /**
     * @Fields manu_registration_num : 
     */
    @Field(type = FieldType.keyword)
    private String manu_registration_num;
    
    /**
     * @Fields mapping_company : 
     */
    @Field(type = FieldType.text,analyzer="ik_max_word")
    private String mapping_company;
    
    /**
     * @Fields note : 
     */
    @Field(type = FieldType.keyword)
    private String note;
    
    /**
     * @Fields produce_address : TODO(生产地址)
     */
    @Field(type = FieldType.keyword)
    private String produce_address;
    
    /**
     * @Fields produce_scope : TODO(生产范围)
     */
    @Field(type = FieldType.text,analyzer="ik_max_word")
    private String produce_scope;
    
    /**
     * @Fields production_licence_deadline : 
     */
    @Field(type = FieldType.keyword)
    private String production_licence_deadline;
    
    /**
     * @Fields project_id : TODO(公司id)
     */
    @Field(type = FieldType.keyword)
    private String project_id;
    
    /**
     * @Fields registration_address : TODO(注册地址)
     */
    @Field(type = FieldType.keyword)
    private String registration_address;
    
    /**
     * @Fields report_phone : 
     */
    @Field(type = FieldType.keyword)
    private String report_phone;
    
    /**
     * @Fields supervisory_agency : 
     */
    @Field(type = FieldType.keyword)
    private String supervisory_agency;
    
    /**
     * @Fields supervisory_agent : 
     */
    @Field(type = FieldType.keyword)
    private String supervisory_agent;
    
    /**
     * @Fields type : TODO(企业类型)
     */
    @Field(type = FieldType.keyword)
    private String type;
    
    /**
     * @Fields update_time : TODO(更新时间)
     */
    @Field(type = FieldType.Date, format = DateFormat.custom, pattern = "yyyy-MM-dd HH:mm:ss")
    private String update_time;
    
    /**
     * @Fields warehouse_address : 
     */
    @Field(type = FieldType.keyword)
    private String warehouse_address;
    
    /**
     * @Fields weight_json : TODO(字段来源)
     */
    @Field(type = FieldType.Nested)
    private List<WeightJson> weight_json;
}

